import React from 'react';
import {
  FileTextOutlined,
  MergeCellsOutlined,
  ScissorOutlined,
  ScanOutlined,
  HomeOutlined
} from '@ant-design/icons';
import type { ReactElement } from 'react';
import Home from '../pages/Home';
import OCRScanner from '../pages/OCRScanner';
import PDFConverter from '../pages/PDFConverter';
import PDFMerger from '../pages/PDFMerger';
import PDFSplitter from '../pages/PDFSplitter';

interface RouteConfig {
  path: string;
  name: string;
  icon: ReactElement;
  element: ReactElement;
}

export const routes: RouteConfig[] = [
  {
    path: '/',
    name: '首页',
    icon: <HomeOutlined />,
    element: <Home />,
  },
  {
    path: '/ocr',
    name: 'OCR识别',
    icon: <ScanOutlined />,
    element: <OCRScanner />,
  },
  {
    path: '/convert',
    name: 'PDF转换',
    icon: <FileTextOutlined />,
    element: <PDFConverter />,
  },
  {
    path: '/merge',
    name: 'PDF合并',
    icon: <MergeCellsOutlined />,
    element: <PDFMerger />,
  },
  {
    path: '/split',
    name: 'PDF拆分',
    icon: <ScissorOutlined />,
    element: <PDFSplitter />,
  },
]; 